}
animateToOverview(callback) {
- this._controls.animateToOverview();
-
- this.opacity = 0;
- this.ease({
- opacity: 255,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- duration: ANIMATION_TIME,
- onStopped: () => {
- if (callback)
- callback();
- },
- });
+ this._controls.animateToOverview(callback);
}
animateFromOverview(callback) {
- this._controls.animateFromOverview();
-
- this.ease({
- opacity: 0,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- duration: ANIMATION_TIME,
- onStopped: () => {
- if (callback)
- callback();
- },
- });
+ this._controls.animateFromOverview(callback);
}
get dash() {
this._workspaceAdjustment.value = activeIndex;
}
- animateToOverview() {
+ animateToOverview(callback) {
this.viewSelector.animateToOverview();
this._stateAdjustment.value = ControlsState.HIDDEN;
this._stateAdjustment.ease(ControlsState.WINDOW_PICKER, {
duration: Overview.ANIMATION_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onStopped: () => {
+ if (callback)
+ callback();
+ },
});
}
- animateFromOverview() {
+ animateFromOverview(callback) {
this._ignoreShowAppsButtonToggle = true;
this.viewSelector.animateFromOverview();
onStopped: () => {
this.dash.showAppsButton.checked = false;
this._ignoreShowAppsButtonToggle = false;
+
+ if (callback)
+ callback();
},
});
}